package org.jeecg.modules.wlhy.bill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: hy_shipping_note_bill
 * @Author: jeecg-boot
 * @Date:   2021-01-20
 * @Version: V1.0
 */
@Data
@TableName("hy_shipping_note_bill")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_shipping_note_bill对象", description="hy_shipping_note_bill")
public class HyShippingNoteBill implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    @ApiModelProperty(value = "billId")
    private String billId;
	/**流水号*/
	@Excel(name = "流水号", width = 15)
    @ApiModelProperty(value = "流水号")
    private String billNum;
	/**单据类型(1支付运费)*/
    @Excel(name = "订单类型", width = 15,dicCode = "billType")
    @Dict(dicCode = "billType")
    @ApiModelProperty(value = "单据类型(1支付运费2支付凭证-撮合模式6预付运费7分段预付 8支付计划首付9支付计划到付)")
    private String billType;
	/**货源id*/
//	@Excel(name = "货源", width = 15)
    @ApiModelProperty(value = "货源id")
    private String orderId;
	/**运单id*/
//	@Excel(name = "运单id", width = 15)
    @ApiModelProperty(value = "运单id")
    private String shippingId;
	/**运单号*/
	@Excel(name = "运单号", width = 15)
    @ApiModelProperty(value = "运单号")
    private String shippingNoteNumber;
	/**公司id*/
    @Excel(name = "公司", width = 15, dictTable = "hy_company", dicText = "company_name", dicCode = "id")
    @Dict(dictTable = "hy_company", dicText = "company_name", dicCode = "id")
    @ApiModelProperty(value = "公司")
    private String companyId;

    /**货主id*/
    @Excel(name = "货主", width = 15, dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @Dict(dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
    @ApiModelProperty(value = "货主id")
    @TableField(exist = false)
    private String customerId;

	/**运费支付方式(1按运单结算2车队长结算)*/
	@Excel(name = "运费支付方式", width = 15,dicCode = "pay_type")
    @Dict(dicCode = "pay_type")
    @ApiModelProperty(value = "运费支付方式(1按运单结算2车队长结算)")
    private String payType;

	@Excel(name = "支付时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "运费支付完成时间")
    private Date payDt;

	/**车队长id*/
    @Excel(name = "车队长", width = 15, dictTable = "hy_carrier",dicText = "carrier_name", dicCode = "id")
    @Dict(dictTable = "hy_carrier", dicText = "carrier_name", dicCode = "id")
    @ApiModelProperty(value = "车队长id")
    private String carrierId;
	/**司机id*/
	@Excel(name = "司机", width = 15)
    @ApiModelProperty(value = "司机id")
    private String driverId;
	/**实际承运人名称*/
	@Excel(name = "实际承运人名称", width = 15)
    @ApiModelProperty(value = "实际承运人名称")
    private String carrier;
	/**实际承运人统一社会信用代码或证件号码*/
	@Excel(name = "实际承运人统一社会信用代码或证件号码", width = 15)
    @ApiModelProperty(value = "实际承运人统一社会信用代码或证件号码")
    private String actualCarrierId;
	/**车辆id*/
	@Excel(name = "车辆id", width = 15)
    @ApiModelProperty(value = "车辆id")
    private String vehicleId;
	/**车辆牌照号*/
	@Excel(name = "车辆牌照号", width = 15)
    @ApiModelProperty(value = "车辆牌照号")
    private String vehicleNumber;
	/**车牌颜色代码*/
	@Excel(name = "车牌颜色代码", width = 15)
    @ApiModelProperty(value = "车牌颜色代码")
    private String vehicleColorCode;
	/**借方账号*/
	@Excel(name = "借方账号", width = 15)
    @ApiModelProperty(value = "借方账号")
    private String dbaccno;
	/**借方多级账簿号*/
	@Excel(name = "借方多级账簿号", width = 15)
    @ApiModelProperty(value = "借方多级账簿号")
    private String dblogaccno;
	/**借方名称*/
	@Excel(name = "借方名称", width = 15)
    @ApiModelProperty(value = "借方名称")
    private String dbaccname;

	/**贷方账号*/
	@Excel(name = "贷方账号", width = 15)
    @ApiModelProperty(value = "贷方账号")
    private String craccno;
	/**贷方多级账簿号*/
	@Excel(name = "贷方多级账簿号", width = 15)
    @ApiModelProperty(value = "贷方多级账簿号")
    private String crlogaccno;
	/**贷方名称*/
	@Excel(name = "贷方名称", width = 15)
    @ApiModelProperty(value = "贷方名称")
    private String craccname;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal amt;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**删除状态(0-正常,1-已删除)*/
//	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    private String delFlag;
	/**付款方式代码*/
	@Excel(name = "付款方式代码", width = 15)
    @ApiModelProperty(value = "付款方式代码")
    private String paymentMeansCode;
	/**收款方银行代码*/
	@Excel(name = "收款方银行代码", width = 15)
    @ApiModelProperty(value = "收款方银行代码")
    private String bankCode;
    /**监管上报状态(0未上传 1上传成功 2上传失败)*/
//    @Excel(name = "监管上报状态(0未上传 1上传成功 2上传失败)", width = 15)
    @ApiModelProperty(value = "监管上报状态(0未上传 1上传成功 2上传失败)")
    private java.lang.String uploadStatus;
    /**监管上报时间*/
//    @Excel(name = "监管上报时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "监管上报时间")
    private java.util.Date uploadDate;



    @ApiModelProperty(value = "支付状态:返回来源")
    private String respSource;

    @ApiModelProperty(value = "支付状态:返回码")
    private String respCode;

    @ApiModelProperty(value = "支付状态:返回信息")
    private String respInfo;

    @ApiModelProperty(value = "支付状态:返回扩展信息")
    private String rxtInfo;

    private String dbProv;
    private String crProv;

    @Excel(name = "银行电子回单文件", width = 15)
    private String bankHd;//银行电子回单

    @Excel(name = "银行电子回单图片", width = 15)
    private String bankHdImg;//银行电子回单图片

    @ApiModelProperty(value = "快货运运单标识")
    private String tosIdentification;

    @ApiModelProperty(value = "快货运运单能否开票")
    private String tosShippingnoteAble;

    /**导入标识(0正常 1导入)*/
//    @Excel(name = "导入标识(0正常 1导入)", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "导入标识(0正常 1导入)")
    private java.lang.String billImportFlag;



    @Excel(name = "支付渠道", width = 15,dicCode = "pay_channel")
    @ApiModelProperty(value = "支付渠道(1农行支付 5线下支付)")
    @Dict(dicCode = "pay_channel")
    private String payChannel;

    @ApiModelProperty(value = "上报失败原因")
    private java.lang.String reportFailureReason;



    /**上报平台类型(1-河北,2-天津)*/
    //    @Excel(name = "上报平台类型(1-河北,2-天津)", width = 15, dicCode = "report_platform_type")
    @Dict(dicCode = "report_platform_type")
    @ApiModelProperty(value = "上报平台类型(1-河北,2-天津)")
    private Integer reportPlatformType;

    //	@Excel(name = "支付源", width = 15, dicCode = "pay_source")
//    @ApiModelProperty(value = "支付源(1农行钱包 2平台垫付3系统钱包4账期)")
//    @Dict(dicCode = "pay_source")
//    private String paySource;

    private String frontFlowNo;
    @ApiModelProperty(value = "是否是承运商运单(0否1是)")
    private String izCaptainShipping;
    @ApiModelProperty(value = "承运商运费")
    private BigDecimal captainFee;
    @Dict(dictTable = "hy_captain", dicText = "captain_name", dicCode = "id")
    private String captainId;
}
